from django.utils import timezone

DATETIME_DICT_KEYS = ['year', 'month', 'day',
                      'hour', 'minute', 'second',
                      'microsecond']


def create_datetime(dts: str) -> timezone.datetime:
    dic = {DATETIME_DICT_KEYS[i]: int(e) for i, e in enumerate(dts.split('/'))}
    return timezone.datetime(**dic)
